﻿
@model RTW.OA.Models.attend_paiban
@{

    Layout = "~/Views/Shared/_LayoutBase.cshtml";
}

@section styles{

}
<div id="dMain">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="ibox" style="margin-bottom: 0px;">
            <div class="ibox-title">
                <h4>@ViewBag.Title </h4>
            </div>
            <div class="ibox-content">
                @using (Html.BeginForm("PaibanEdit", "Attend", FormMethod.Post, new { area = "Common", id = "Paibanfrom", name = "Paibanfrom" }))
                {
                    @Html.AntiForgeryToken()

                    <div class="from-content">
                        <dl>
                            <dt>值班人员</dt>
                            <dd>
                                @Html.EditorFor(m => m.ZHIBANREN, new { htmlAttributes = new { @class = "input normal form-control" } })&nbsp;@*<a href="#" onclick="javascript: ;">+选择</a>*@
                            </dd>
                        </dl>
                        <dl>
                            <dt>排班类型</dt>
                            <dd>
                                <div class="rule-single-select">
                                    <select name="PAIBAN_TYPE" class="form-control">
                                        <option value="领导带班">领导带班</option>
                                        <option value="行政值班">行政值班</option>
                                        <option value="应急值班">应急值班</option>
                                        <option value="监控值班">监控值班</option>
                                    </select>
                                </div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>值班类型</dt>
                            <dd>
                                <div class="rule-single-select">
                                    <select name="ZHIBAN_TYPE" class="form-control">
                                        <option value="工作日值班">工作日值班</option>
                                        <option value="周末值班">周末值班</option>
                                        <option value="节假日值班">节假日值班</option>
                                    </select>
                                </div>
                            </dd>
                        </dl>
                        <dl>
                            <dt>值班日期</dt>
                            <dd>
                                @Html.EditorFor(m => m.ZBSJ_B, new { htmlAttributes = new { @Class = "input rule-date-input form-control", onfocus = "WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss'})" } })<a href="javascript:;" style="color:#8383df;" onclick='$("#ZBSJ_B").val(new Date().Format("yyyy-MM-dd hh:mm:ss"));'>置为当前时间</a> 到 @Html.EditorFor(m => m.ZBSJ_E, new { htmlAttributes = new { @Class = "input rule-date-input form-control", onfocus = "WdatePicker({ dateFmt: 'yyyy-MM-dd HH:mm:ss'})" } })<a href="javascript:;" style="color:#8383df;" onclick='$("#ZBSJ_E").val(new Date().Format("yyyy-MM-dd hh:mm:ss"));'>置为当前时间</a>
                            </dd>
                        </dl>
                        <dl>
                            <dt>值班要求</dt>
                            <dd>
                                @Html.EditorFor(m => m.ZBYQ, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>备注</dt>
                            <dd>
                                @Html.EditorFor(m => m.BEIZHU, new { htmlAttributes = new { @class = "input normal form-control" } })
                            </dd>
                        </dl>
                        <dl>
                            <dt>提醒</dt>
                            <dd>
                                <div class="rule-single-checkbox">
                                    @Html.CheckBox("REMIND_TYPE", new { @class = "form-control" })
                                </div>
                            </dd>
                        </dl>
                        @Html.HiddenFor(m => m.PAIBAN_ID)
                    </div>
                    <div class="from-footer">
                        <div class="btn-wrap" style="position: fixed;">
                            <a class="btn btn-sm btn-primary radius" onclick="savefrom()">
                                <i class="iconfont icon-save"></i>
                                提交保存
                            </a>
                            <a class="btn btn-sm btn-warning radius" onclick="parent.subcloseTab('3201')">
                                <i class="iconfont icon-fanhui"></i>
                                取消关闭
                            </a>
                        </div>
                    </div>
                }
            </div>
        </div>
    </div>
</div>
@section scripts{
    <script src="@Url.Content("~/Content/JS/common/WdatePicker/WdatePicker.js")"></script>
    <script src="@Url.Content("~/Content/JS/common/Date.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/jquery/Validform_v5.3.2_min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/artdialog/dialog-plus-min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/JS/common/webuploader/webuploader.min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.config.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/ueditor.all.min.js")"></script>
    <script type="text/javascript" charset="utf-8" src="@Url.Content("~/Content/editor/lang/zh-cn/zh-cn.js")"></script>
    @*<script type="text/javascript" charset="utf-8" src="../js/uploader.js"></script>*@

    <script src="@Url.Content("~/Content/JS/common/from.js")"></script>
    <script>
        $(function () {
            //初始化表单验证
            $("#Paibanfrom").initValidform();
        });
        function savefrom() {
            $("#Paibanfrom").submit();
        }
    </script>

}